package com.kedsoft.andaily.entity;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;

/**
 * <p>
 * 操作日志
 * </p>
 *
 * @author LGP
 * @since 2019-04-26
 */
@TableName("pt_logs")
public class Logs implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 操作人员
     */
    private String opuser;
    private Integer taskid;
    private String task;
    /**
     * 操作信息
     */
    private String opvalue;
    /**
     * 操作时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date optime;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getOpuser() {
        return opuser;
    }

    public void setOpuser(String opuser) {
        this.opuser = opuser;
    }

    public String getOpvalue() {
        return opvalue;
    }

    public void setOpvalue(String opvalue) {
        this.opvalue = opvalue;
    }

    public Date getOptime() {
        return optime;
    }

    public void setOptime(Date optime) {
        this.optime = optime;
    }

    public Integer getTaskid() {
        return taskid;
    }

    public void setTaskid(Integer taskid) {
        this.taskid = taskid;
    }

    public String getTask() {
        return task;
    }

    public void setTask(String task) {
        this.task = task;
    }

    @Override
    public String toString() {
        return "Logs{" +
                "id=" + id +
                ", opuser='" + opuser + '\'' +
                ", taskid='" + taskid + '\'' +
                ", task='" + task + '\'' +
                ", opvalue='" + opvalue + '\'' +
                ", optime=" + optime +
                '}';
    }

    public Logs(Integer taskid, String task, String opvalue, Date optime, String opuser) {
        this.taskid = taskid;
        this.task = task;
        this.opvalue = opvalue;
        this.optime = optime;
        this.opuser = opuser;
    }

    public Logs() {
    }
}
